<?php /* Smarty version Smarty-3.0.9, created on 2013-05-06 19:54:46
         compiled from "D:/wamp/www/glight/templates\verfincas.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2149951880a8607da21-56261045%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '684a1e56b7fd31aea82e5d1e46fef2af15b029ee' => 
    array (
      0 => 'D:/wamp/www/glight/templates\\verfincas.tpl',
      1 => 1367870074,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2149951880a8607da21-56261045',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form class="well form-search" method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
c_verfincas.php?option=ver">

<div class="square">
<table border="0" width="100%" cellpadding="0" cellspacing="10">
 <tr><td><input class="btn btn-primary" type="submit" value="cargar"></td></tr>

<tr><td><b>Fincas</b></td></tr>
<?php if (!empty($_smarty_tpl->getVariable('finca',null,true,false)->value)){?>

<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('finca')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
<tr><td><b>ID:</b> <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<br />
<b>Nombre:</b> <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
<br />
<b>Valor de la propiedad:</b> <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('valor_propiedad');?>
<br />
<b>Cantidad de vacas:</b> <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('cantidad_vacas');?>
<br />
<b>Cantidad de gallinas:</b> <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('cantidad_gallinas');?>
<br />
<b>Granjero:</b> 
<?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('granjero');?>
-    <?php echo $_smarty_tpl->getVariable('finca')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->auxiliars['gnombre'];?>





</td></tr>
<?php endfor; endif; ?>
<?php }?>
<?php if (!empty($_smarty_tpl->getVariable('granjero',null,true,false)->value)){?>

<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('granjero')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
<tr><td><b>ID:</b> <?php echo $_smarty_tpl->getVariable('granjero')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<br />
<b>Nombre:</b> <?php echo $_smarty_tpl->getVariable('granjero')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
<br />
<b>Edad:</b> <?php echo $_smarty_tpl->getVariable('granjero')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('edad');?>
<br />
<b>Sexo:</b> <?php echo $_smarty_tpl->getVariable('granjero')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('sexo');?>
<br />

</td></tr>
<?php endfor; endif; ?>
<?php }?>
</table>
</div>
</form>